<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with array to audiooutput - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=array+to+audiooutput</link>
      <pubDate>Sun, 08 Aug 2021 18:16:10 +0000</pubDate>
         <description>Tagged with array to audiooutput - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedarray+to+audiooutput/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>How to get sound from an array to my sound card with minim (AudioOutput).</title>
      <link>https://forum.processing.org/two/discussion/9255/how-to-get-sound-from-an-array-to-my-sound-card-with-minim-audiooutput</link>
      <pubDate>Sun, 01 Feb 2015 12:04:21 +0000</pubDate>
      <dc:creator>mpex2006km</dc:creator>
      <guid isPermaLink="false">9255@/two/discussions</guid>
      <description><![CDATA[<p>Hi to all the users out there. This is my first post and it is a question.Now, I've made a sketch with MPX demodulation and analysis in mind . MPX is a multiplexed signal for FM Stereo transmission. I got to the point that i demodulated the MPX and now i have two arrays with the sample for the Left and Right audio channels but i cannot find a way to  'stream' these arrays to my sound card. So now that is my question : How to go from arrays to the AudioOutput command in minim . The arrays are named "left" and "right" and they both are 8192 sample long and the sample rate is 192Khz.</p>

<p>Thank you very much. (I am a newbie so any help will be appreciated).</p>
]]></description>
   </item>
   <item>
      <title>Can/how to create array of audio that plays a random number randomly</title>
      <link>https://forum.processing.org/two/discussion/10879/can-how-to-create-array-of-audio-that-plays-a-random-number-randomly</link>
      <pubDate>Mon, 18 May 2015 16:50:42 +0000</pubDate>
      <dc:creator>emmylaz</dc:creator>
      <guid isPermaLink="false">10879@/two/discussions</guid>
      <description><![CDATA[<p>Hi y'all,</p>

<p>I am new to processing and have limited javascript experience when it comes to audio, so I am not sure if this is possible. Essentially, I want to create a program that will play an array of 140 audio files (if there is a type that works best that would be good to know) randomly and will overlay indefinitely ideally increasing in the number of audio files it plays. It can repeat audio files for the sake of the work. If that does not make sense, I have written the visual equivalent, so essentially is there a way to make the visual with audio files instead. Obviously it will not be an exact replica, but the gist of that. Hopefully that makes sense. Below is the code if you want to see what is going on.</p>

<pre><code>int maxImages = 140;
int counter;

float x;
float y;
float r;

boolean workAway = true;

PImage[] imageList = new PImage[maxImages];  
PGraphics patch;

void setup(){
    patch = createGraphics(1438,1000);
    size(1438,1000);

for(int i = 0; i &lt; imageList.length; i++){
    imageList[i] = loadImage( i + ".png");  
}

patch.beginDraw();  
patch.translate(patch.width/10003, patch.height/10003);
}

void draw(){

counter++; 

if(counter%50 == 0){                                       
PImage img = patch.get(0, 0, patch.width, patch.height); 
img.resize(width, height);                               
image(img, 0, 0);                                       
}

for(int i = 0; i &lt; imageList.length; i ++){  
r = random(2*PI);
patch.rotate(r);
x = randomGaussian()*10799;     
y = random(10050);
patch.image(imageList[i], x, y);  
}
println(frameCount);
}

void keyPressed() {              
if (key == ' ') {            
  patch.endDraw();
  patch.save("patch-" + frameCount + ".tif");
  println("image patch-" + frameCount + ".tif saved!");
  noLoop();
    }
} 
</code></pre>

<p>Thanks in advance!!</p>
]]></description>
   </item>
   </channel>
</rss>